home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / picstatus.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-10-07  |  2.5 KB  |  104 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PICSTATUS_H
  8. #define PICSTATUS_H
  9.  
  10. #include "scribusapi.h"
  11. #include "ui_picstatus.h"
  12. #include <QListWidgetItem>
  13.  
  14. class ScribusDoc;
  15. class PageItem;
  16.  
  17. class SCRIBUS_API PicItem : public QListWidgetItem
  18. {
  19. public:
  20.     PicItem(QListWidget* parent, QString text, QPixmap pix, PageItem* pgItem);
  21.     ~PicItem() {};
  22.     PageItem *PageItemObject;
  23. };
  24.  
  25.  
  26. /*! \brief Constructs a Dialog, which list all Images in the current Document.
  27. In this Dialog it is possible to search for missing Images. */
  28. class SCRIBUS_API PicStatus : public QDialog, Ui::PicStatus
  29.     Q_OBJECT
  30.  
  31. public:
  32.     /*!
  33.     \author Franz Schmid
  34.     \brief Constructs a Dialog, which list all Images in the current Document. In this Dialog it is possible
  35.         to search for missing Images.
  36.     \param parent Pointer to parent window
  37.     \param docu Pointer to the current Document
  38.      */
  39.     PicStatus(QWidget* parent, ScribusDoc *docu);
  40.     ~PicStatus() {};
  41.  
  42.     QPixmap createImgIcon(PageItem* item);
  43.  
  44.     /*! \brief A slot called when there is a request to re-fill the table
  45.     of images. It clears the table at first. Then it iterates through
  46.     all items in MasterItems and Items too. */
  47.     void fillTable();
  48.  
  49. private slots:
  50.     void sortByName();
  51.     void sortByPage();
  52.     void slotRightClick();
  53.     void imageSelected(QListWidgetItem *ite);
  54.     void newImageSelected();
  55.     /*!
  56.     \author Franz Schmid
  57.     \brief Enables or disables printing of the selected Image.
  58.     */
  59.     void PrintPic();
  60.     /*!
  61.     \author Franz Schmid
  62.     \brief Enables or disables viewing of the selected Image.
  63.     */
  64.     void visiblePic();
  65.     /*!
  66.     \author Franz Schmid
  67.     \brief Moves to the Page containing the selected Image.
  68.      */
  69.     void GotoPic();
  70.  
  71.     /*!
  72.     \author Franz Schmid
  73.     \brief Selects the object containing the selected Image.
  74.      */
  75.     void SelectPic();
  76.     /*!
  77.     \author Franz Schmid
  78.     \brief Searches for the given Picture. Displays a Dialog when more than one Picture is found.
  79.     */
  80.     void SearchPic();
  81.     void doImageEffects();
  82.     void doImageExtProp();
  83.     void doEditImage();
  84.  
  85. signals:
  86.     void selectPage(int);
  87.     void selectMasterPage(QString);
  88.     void selectElement(int, int, bool);
  89.     void refreshItem(PageItem*);
  90.  
  91. protected:
  92.     /*! \brief Load the image specified into the PageItem
  93.     \param newFilePath a file path */
  94.     bool loadPict(const QString & newFilePath);
  95.  
  96. private:
  97.     ScribusDoc *m_Doc;
  98.     PageItem *currItem;
  99.     int sortOrder;
  100.  
  101. };
  102. #endif
  103.